export const rules = {
  modelName: [{ required: true, message: "请输入名称", trigger: "change" }],
  modelCode: [{ required: true, message: "请输入编码", trigger: "change" }],
  marking: [{ required: true, message: "请输入型号", trigger: "change" }],
  product_auditDescription: [
    { required: true, message: "请选择专业", trigger: "change" },
  ],
  classificationCode: [
    { required: true, message: "请选择分类", trigger: "change" },
  ],
  shrinkageChart: [
    {
      required: true,
      message: "请上传缩略图",
      trigger: ["change", "blur"],
    },
  ],
  province: [{ required: true, message: "请选择区域", trigger: "change" }],
  standard: [{ required: true, message: "请输入规格", trigger: "change" }],
  specifications: [
    { required: true, message: "请添加尺寸规格", trigger: ["change", "blur"] },
  ],
  modelFileDtos: [
    {
      required: true,
      message: "请上传模型文件",
      trigger: ["change", "blur"],
      type: "array",
    },
  ],
  databaseModelFileDtos: [
    {
      required: true,
      message: "请上传附件",
      trigger: ["change", "blur"],
    },
  ],
};
